package cn.xzz.pethome.dept.mapper;

import cn.xzz.pethome.dept.domain.Department;
import cn.xzz.pethome.dept.query.DeptQuery;

import java.util.List;

public interface DepartmentMapper {
    //查询总条数
    Long findcount(DeptQuery query);

    //查询全部
    List<Department> findAll(DeptQuery query);

    //查询一个
    Department findById(Long id);


    //新增
    void adddept(Department department);

    //修改
    void updatedept(Department department);

    //删除
    void delete(Long id);

    //批量删除
    void batchdeletedept(List<Long> ids);

    List<Department> findDeptAll();
}
